package com.itcast.yygh.orders.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

@Data
@TableName("order_message_log")
public class OrderMessageLog {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long orderId;

    private String messageId;

    private String messageContent;

    private Integer status; // 0-待发送，1-已发送，2-发送失败

    private Integer retryCount;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
